




<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <h:head>


    </h:head>
    <h:body>


        <h:form id="filterDataFrm">
            <p:growl id="list_growl" showDetail="true" />
            <h:panelGrid style="width:100%">
                <p:messages id="List_msg" />
                <p:panel style="width:80%" header="Search">


                    		  <h:column>
                    			    <h:outputLabel rendered="false" value="ID" />
                    				       <h:inputText  id="Attr_filter_By_ID"
                    							 value="#{dmAttrPropBean.dmAttrPropSrchCrit.ID}" 
                    							 rendered="false"  />

                    							</h:column>

                    		  <h:column>
                    			    <h:outputLabel rendered="false" value="Value" />
                    				       <h:inputText  id="Attr_filter_By_value"
                    							 value="#{dmAttrPropBean.dmAttrPropSrchCrit.value}" 
                    							 rendered="false"  />

                    							</h:column>

                    		  <h:column>
                    			    <h:outputLabel rendered="false" value="DataModelAttributes_ID" />
                    				       <h:inputText  id="Attr_filter_By_dataModelAttributes_ID"
                    							 value="#{dmAttrPropBean.dmAttrPropSrchCrit.dataModelAttributes_ID}" 
                    							 rendered="false"  />

                    							</h:column>

                    		  <h:column>
                    			    <h:outputLabel rendered="false" value="AttributesProperties_ID" />
                    				       <h:inputText  id="Attr_filter_By_attributesProperties_ID"
                    							 value="#{dmAttrPropBean.dmAttrPropSrchCrit.attributesProperties_ID}" 
                    							 rendered="false"  />

                    							</h:column>
                     

                    <p:commandButton id="submitFilter" value="Filter"
                                     process="@this, Attr_filter_By_ID ,  Attr_filter_By_value ,  Attr_filter_By_dataModelAttributes_ID ,  Attr_filter_By_attributesProperties_ID "   action="#{dmAttrPropBean.doFilter}" update="list_growl" oncomplete="lazyload()"  />
                     <p:commandButton id="clearFilter" value="Clear"
                                     process="@this"   action="#{dmAttrPropBean.clearFilter}" update="list_growl" oncomplete="lazyload()"  />

                </p:panel>

            </h:panelGrid>


            <h:panelGrid style="width:100%" id="dtPanelGrd" columns="2" cellpadding="10">


                <p:confirmDialog modal="true" draggable="false" position="center" severity="warning"
                                 widgetVar="varConfirmDelete" id="confirmDelete" message="Are you sure to delete?"  >
                    <p:commandButton process="@this" action="#{dmAttrPropBean.delete}" value="Yes" oncomplete="varConfirmDelete.hide();lazyload();"  update="dt1,list_growl,List_msg"  />
                    <p:commandButton value="No" onclick="varConfirmDelete.hide()" />

                </p:confirmDialog>
                <p:remoteCommand name="lazyload" update="dt_list_frm"/>

                <p:dialog id="dmAttrPropDialog"  header="Update DmAttrProp Detail" widgetVar="varDmAttrPropDialog"
                          modal="true" draggable="false" showEffect="fade" width="500" closeOnEscape="false">

                    <b>Update DmAttrProp</b>
                    <table>

                    		  <tr>
                    			<td>    <h:outputLabel rendered="true" value="ID" /></td>
                    			<td>:</td>
                    			<td>
                    				      <h:inputText  id="Attr_update_ID"
                    							 value="#{dmAttrPropBean.dmAttrPropUpdate.ID}"
                    							 required="false"
                    							 rendered="true" 
                    							 requiredMessage="ID is Mandatory"/>
                    							</td>
                    						</tr>
                    			
                    		  <tr>
                    			<td>    <h:outputLabel rendered="true" value="Value" /></td>
                    			<td>:</td>
                    			<td>
                    				      <h:inputText  id="Attr_update_value"
                    							 value="#{dmAttrPropBean.dmAttrPropUpdate.value}"
                    							 required="false"
                    							 rendered="true" 
                    							 requiredMessage="Value is Mandatory"/>
                    							</td>
                    						</tr>
                    			
                    		  <tr>
                    			<td>    <h:outputLabel rendered="true" value="DataModelAttributes_ID" /></td>
                    			<td>:</td>
                    			<td>
                    				      <h:inputText  id="Attr_update_dataModelAttributes_ID"
                    							 value="#{dmAttrPropBean.dmAttrPropUpdate.dataModelAttributes_ID}"
                    							 required="false"
                    							 rendered="true" 
                    							 requiredMessage="DataModelAttributes_ID is Mandatory"/>
                    							</td>
                    						</tr>
                    			
                    		  <tr>
                    			<td>    <h:outputLabel rendered="true" value="AttributesProperties_ID" /></td>
                    			<td>:</td>
                    			<td>
                    				      <h:inputText  id="Attr_update_attributesProperties_ID"
                    							 value="#{dmAttrPropBean.dmAttrPropUpdate.attributesProperties_ID}"
                    							 required="false"
                    							 rendered="true" 
                    							 requiredMessage="AttributesProperties_ID is Mandatory"/>
                    							</td>
                    						</tr>
                    			
                    			
                    			
                    			
                    			 
                    </table>
                    <h:panelGrid id="displayUpdatePanelGrid" >
                        <p:commandButton process="@this, Attr_update_ID ,  Attr_update_value ,  Attr_update_dataModelAttributes_ID ,  Attr_update_attributesProperties_ID "
                                         value="update" title="Update DmAttrProp"   action="#{dmAttrPropBean.update}" oncomplete="varDmAttrPropDialog.hide();lazyload();"  />
                    </h:panelGrid>
                </p:dialog>
            </h:panelGrid>



        </h:form>


        <h:form id="dt_list_frm">

            <p:dataTable id="dt1" var="dt_DmAttrProp" value="#{dmAttrPropBean.dmAttrPropList}"
                         paginator="true" rows="10" emptyMessage="no data" selectionMode="single" style="width: 80%" >

                <f:facet name="header">
                    List of DmAttrProp
                </f:facet>
                <f:facet name="footer">
                    <span>All Data</span>
                    <h:commandLink  >
                        <p:graphicImage style="border: 0px" value="/resources/icons/XLS.png" />
                        <p:dataExporter type="xls" target="dt1" fileName="All_dmAttrProp" excludeColumns="#{dmAttrPropBean.excludedClmn}" />
                    </h:commandLink>

                    <h:commandLink>
                        <p:graphicImage style="border: 0px" value="/resources/icons/PDF.png" />
                        <p:dataExporter type="pdf" target="dt1" fileName="All_dmAttrProp" excludeColumns="#{dmAttrPropBean.excludedClmn}" />
                    </h:commandLink>

                    <h:commandLink>
                        <p:graphicImage style="border: 0px" value="/resources/icons/CSV.png" />
                        <p:dataExporter type="csv" target="dt1" fileName="All_dmAttrProp" excludeColumns="#{dmAttrPropBean.excludedClmn}" />
                    </h:commandLink>

                    <h:commandLink>
                        <p:graphicImage style="border: 0px" value="/resources/icons/XML.png" />
                        <p:dataExporter type="xml" target="dt1" fileName="All_dmAttrProp" excludeColumns="#{dmAttrPropBean.excludedClmn}" />
                    </h:commandLink>


                    <span>This Page</span>
                    <h:commandLink>
                        <p:graphicImage style="border: 0px" value="/resources/icons/XLS.png" />
                        <p:dataExporter type="xls" target="dt1" fileName="page_dmAttrProp"
                                        pageOnly="true" excludeColumns="#{dmAttrPropBean.excludedClmn}" />
                    </h:commandLink>

                    <h:commandLink >
                        <p:graphicImage style="border: 0px" value="/resources/icons/PDF.png" />
                        <p:dataExporter type="pdf" target="dt1" fileName="page_dmAttrProp"
                                        pageOnly="true" excludeColumns="#{dmAttrPropBean.excludedClmn}" />
                    </h:commandLink>

                    <h:commandLink>
                        <p:graphicImage style="border: 0px" value="/resources/icons/CSV.png" />
                        <p:dataExporter type="csv" target="dt1" fileName="page_dmAttrProp"
                                        pageOnly="true" excludeColumns="#{dmAttrPropBean.excludedClmn}" />
                    </h:commandLink>

                    <h:commandLink>
                        <p:graphicImage style="border: 0px" value="/resources/icons/XML.png" />
                        <p:dataExporter type="xml" target="dt1" fileName="page_dmAttrProp"
                                        pageOnly="true" excludeColumns="#{dmAttrPropBean.excludedClmn}" />
                    </h:commandLink>

                </f:facet>



               			    <p:column>
               	                        <f:facet name="header">
               	                            <h:outputText value="ID" />
               				 </f:facet>
               				<h:outputText value="#{dt_DmAttrProp.ID}" />
               			  </p:column>		  
               			    <p:column>
               	                        <f:facet name="header">
               	                            <h:outputText value="Value" />
               				 </f:facet>
               				<h:outputText value="#{dt_DmAttrProp.value}" />
               			  </p:column>		  
               			    <p:column>
               	                        <f:facet name="header">
               	                            <h:outputText value="DataModelAttributes_ID" />
               				 </f:facet>
               				<h:outputText value="#{dt_DmAttrProp.dataModelAttributes_ID}" />
               			  </p:column>		  
               			    <p:column>
               	                        <f:facet name="header">
               	                            <h:outputText value="AttributesProperties_ID" />
               				 </f:facet>
               				<h:outputText value="#{dt_DmAttrProp.attributesProperties_ID}" />
               			  </p:column>		   

                <p:column>
                    <f:facet name="header">
                        <h:outputText value="Options" />
                    </f:facet>
                    <p:commandButton process="@this" image="ui-icon ui-icon-trash" title="Delete DmAttrProp"  oncomplete="varConfirmDelete.show()" action="#{dmAttrPropBean.setIDinSession}"  >
                        <f:param name="dmAttrPropID" value="#{dt_DmAttrProp.ID}" />
                    </p:commandButton>
                    <p:commandButton process="@this"  value="Edit" title="Update DmAttrProp"  action="#{dmAttrPropBean.setIDinSession}" update="list_growl,List_msg,filterDataFrm" oncomplete="varDmAttrPropDialog.show()"  >
                        <f:param name="dmAttrPropID" value="#{dt_DmAttrProp.ID}"  />
                    </p:commandButton>

                </p:column>

            </p:dataTable>

        </h:form>

    </h:body>
</html>

